{extend name="common/base" }

{block name="style"}
<style type="text/css">

</style>
{/block}

{block name="content"}
<div class="am-g">
	<div class="am-u-sm-12">
		<form class="am-form ajax-form" method="post" action="{:module_url('edit', ['id' => $_id])}">

            {$widget->form('select', ['title' => '选择视频', 'name' => 'video_id', 'value' => $_record['video_id'], 'list' => $videoList ])}

			{$widget->form('text', ['title' => '章节名称', 'name' => 'chapter', 'value' => $_record['chapter']])}
			
			{$widget->form('image', ['title' => '章节封面', 'name' => 'cover', 'value' => $_record['cover']])}

            {$widget->form('text', ['title' => '播放顺序', 'name' => 'play_sort', 'value' => $_record['play_sort']])}

            {$widget->form('file', ['title' => '上传视频', 'name' => 'source_src', 'value' => $_record['source_src'], 'option' => '选择文件'])}

            {$widget->form('radio', ['title' => '状态', 'name' => 'status', 'value' => $_record['status'], 'list' => $sourceStatus])}

			{$widget->form('submit', ['title' => '用户操作'])}

		</form>
	</div>
</div>
{/block}

{block name="script"}
<script type="text/javascript">
	$(function(){
	
	});
</script>
{/block}